var mongoose = require('./db')

var Schema = mongoose.Schema

//标签表
var kaoSchema = new Schema({
    name: String,
    question:Array,
    tscore:{
        type:Number,
        default:-1
    },
    testid:{
        type:Schema.Types.ObjectId,
        ref:'test'
    },
});

//创建model,第三个参数是实际表名
var kaomodel = mongoose.model("kaoshi", kaoSchema,"kaoshi");

module.exports = kaomodel